<template>
    <div class="gold-shop-wrap">
      <van-nav-bar title="我的合伙人" left-arrow fixed @click-left="onClickLeft" />
      <div class="level" style="margin-top: .2rem;">
        <img src="../../images/img_banner.png" />
      </div>
      <!-- v-if="agentItem.data_list&&agentItem.data_list.length>0" -->
      <div class="level_data" v-for="item,index in agentItem.data_list" :key="index">
        <div class="level_data_img" v-if="item.title">
          <img src="../../images/mine/icon_shuju.png" />
          {{ item.title }}
        </div>
        <div class="level_data_text">
          <div v-for="item,index in item.items" :key="index">{{item.left_text}}{{item.right_text}}</div>
        </div>
      </div>
    </div>
  </template>
  <script>
  import {PARTNER_INFO} from '@/api/mine'
  export default {
    data() {
      return {
        agentItem:{},
      };
    },
    mounted() {
      window.scrollTo(0, 0)
        this.getAgentInfo()
    },
    methods: {
      getAgentInfo(){
          this.$http.get(PARTNER_INFO).then(res=>{
          this.agentItem=res.data
        })
      },
      onClickLeft() {
        this.$router.back();
      },
    },
  };
  </script>
  <style lang="scss" scoped>
  .gold-shop-wrap {
  //   min-height: 100vh;
    min-height: calc(100vh - 46px);
  
    padding-top: 46px;
    background: #f2f4f5;
  
    ::v-deep .van-nav-bar .van-icon {
      color: #333333;
    }
  
    ::v-deep .van-nav-bar__arrow {
      font-size: 20px;
    }
  }
  .level {
    position: relative;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 0.2rem;
    .level_title {
      width: 1.3rem;
      height: 0.32rem;
      font-size: 0.24rem;
      line-height: 0.52rem;
      text-align: center;
      background: #ffffff;
      border-radius: 0px 100px 100px 0px;
      color: #333;
      // padding-left: 0.2rem;
      position: absolute;
      top: 20%;
    }
    .level_city{
      width: 50%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin: 0 auto;
      font-size: 0.26rem;
      font-weight: bold;
      line-height: 0.52rem;
      padding-left: 0.2rem;
      position: absolute;
      bottom: 20%;
      left: 50%;
      transform: translateX(-50%);
    }
    img {
      width: 100%;
      display: block;
      margin: 0 auto;
    }
  }
  .level_data {
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding-bottom: 0.2rem;
    border-radius: 8px;
    margin-bottom: .2rem;
    // margin-top: 0.2rem;
    .level_data_img {
      background: #f5faf6;
      border-radius: 8px 8px 0px 0px;
      // opacity: 0.06;
      padding: 0.2rem;
      font-family: PingFangSC, PingFang SC;
      font-weight: 600;
      font-size: 0.28rem;
      // line-height: 0.4rem;
      // text-align: left;
      color: #333333;
      font-style: normal;
      img {
        width: 0.32rem;
        vertical-align: middle;
      }
    }
    .level_data_text {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 0.28rem;
      color: #666666;
      line-height: 0.52rem;
      // text-align: left;
      font-style: normal;
      padding-left: 0.2rem;
      // margin-top: 0.2rem;
      padding-top: .2rem;
    }
  }
  .level_title {
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding-bottom: 0.2rem;
    border-radius: 8px;
    margin-top: 0.2rem;
    .level_title_btn {
      display: flex;
      justify-content: space-between;
      padding: 0.2rem;
      .title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 0.32rem;
        color: #333333;
        line-height: 0.44rem;
        text-align: left;
        font-style: normal;
      }
      .btn {
        padding: 0.1rem 0.3rem;
        background: linear-gradient(135deg, #ff5851 0%, #e9011b 100%);
        border-radius: 0.28rem;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        font-size: 0.24rem;
        color: #ffffff;
        line-height: 0.34rem;
        //   text-align: left;
        font-style: normal;
      }
    }
    .level_title_text {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 0.24rem;
      color: #666666;
      line-height: 0.44rem;
      // text-align: left;
      font-style: normal;
      margin-left: 0.2rem;
    }
  }
  .balance-pay-popup-wrap {
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
    text-align: center;
    padding: 0.32rem;
    box-sizing: border-box;
    .title {
      color: #1b1b1b;
      font-size: 0.36rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
    }
    .row {
      display: flex;
      -webkit-box-pack: justify;
      -ms-flex-pack: justify;
      justify-content: space-between;
      align-items: center;
      padding-top: 0.2rem;
      padding-bottom: 0.2rem;
      border-bottom: 1px solid #ebedf0;
      &.border-none {
        border: none;
      }
    }
    .van-password-input {
      width: 100%;
      margin: 0;
    }
  }
  </style>
  